<template>
    <div>
        <div v-for="i in result" :key="i.name">
            <div class="h-box">
                <img :src="i.icon" alt="">
                <div class="v-box">
                    <div>{{i.name}}</div>
                    <div>{{i.ctime}}</div>
                </div>
                <!-- <a href="">下载</a> -->
                <a :href="i.url">下载</a>
            </div>
        </div>
    </div>
</template>

<script>
import Vue from 'vue'

export default {
  data: function () {
    return {
      result: [{icon: '', name: '测试'}],
      name: '应用名称',
      date: '2020年6月15日',
      url: ''
    //   url: 'itms-services://?action=download-manifest&url=https://192.168.1.252/install/apps/ThreeKindomX.kokr_nextmv-ios_Adhoc.plist'
    }
  },
  mounted: function () {
    Vue.axios.get('https://192.168.0.69:8000/list').then((response) => {
      console.log(response.data)
      this.result = response.data
    })
  }
}
</script>
<style scoped>
* {
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    color: #333333;
}
.h-box {
    display: flex;
    background-color: white;
    margin-top: 4px;
    align-items: center;
    height: 80px;
    box-shadow: 0px 0px 3px lightgray;
    border-radius: 5px;
}
.h-box>img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-left: 16px;
}
.h-box>a {
    margin-right: 16px;
    color: rgb(54, 54, 199);
    padding: 5px 20px;
    background-color: lightgray;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
}
.v-box {
    display: flex;
    flex-direction: column;
    flex-grow: 2;
    align-items: flex-start;
    margin:0px 16px;
    justify-content: space-around;
    height: 80%;
}
.v-box>div {
    /* flex-grow: 1; */
    background-color: transparent;
    font-size: 12px;
}

</style>
